package com.movieManager.util;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {
public Session getSession()
{
	Configuration configuration =new Configuration();
	configuration.configure();
	SessionFactory sessionfactory=configuration.buildSessionFactory();
	Session session=sessionfactory.openSession();
	return session;
}
}
